<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopDetailTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
          Schema::create('shop_detail', function (Blueprint $table) {
            $table->increments('did') -> comment('详情ID');
            $table->integer('oid')->comment('订单ID');
            $table->integer('gid')->comment('商品ID');
            $table->string('buycnt')->comment('购买数量');
            $table->string('rec')->comment('收货人');
            $table->string('discount')->comment('折扣');
            $table->string('buyprice')->comment('成交定价');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::drop('shop_detail');
    }
}
